package compilers.stmt;

import java.io.BufferedWriter;

import compilers.node.Identifier;
import compilers.node.Stmt;
import compilers.table.MemScope;
import compilers.types.Type;

public class Typedef extends Stmt {
	Type fType;
	Identifier fIdentifier;
	
	public Typedef(Type fType, Identifier fIdentifier) {
		super();
		this.fType = fType;
		this.fIdentifier = fIdentifier;
	}

	public void print(int tab) {
		for (int i=1;i<=tab;i++){System.out.print("\t");}System.out.print("|-");
		System.out.println("Typedef");
		fType.print(tab+1);
		fIdentifier.print(tab+1);
	}

	public void setfType(Type fType) {
		this.fType = fType;
	}

	public void setfIdentifier(Identifier fIdentifier) {
		this.fIdentifier = fIdentifier;
	}

	public void generate(BufferedWriter writer, MemScope scope) {
		// NOTHING TO GENERATE
	}

}
